function writePageHeader(t) {
    
    document.write('<header class="header">'
    +'<ul>'
    +'<li id="MoreButton"><img src="images/more.png"></li>'
    +'<li id="CtyQuery"><input readOnly="true" type="text" placeholder="扫描二维码或SN查询"></li>'
    +'<li class="Scanner"><img src="images/Scan.png"></li>'
    +'</ul>'
    +'</header>'
    	
    );
    if(t == ''){
        var str = '';
    }else{
        var str = '&nbsp;>>&nbsp;';
    }
}

function FocusPicture(){
	document.write('<div class="swiper-publicity" style="overflow: hidden;">'
	    +'<div class="swiper-wrapper">'
		+'<div class="swiper-slide"><a><img alt="焦点图" width="100%" src="images/publicity.jpg"></a></div>'
		+'<div class="swiper-slide"><a><img alt="焦点图" width="100%" src="images/publicity.jpg"></a></div>'
		+'<div class="swiper-slide"><a><img alt="焦点图" width="100%" src="images/publicity.jpg"></a></div>'
	    +'</div>'
    	+'</div>'
	);
}

function AllPageHeader() {
	document.write('<header class="AllHeader">'
        +'<ul>'
	    +'<li class="mui-action-back mui-pull-left"><img src="images/RetreatLeft.png"></li>'
	    +'<li class="titleTwo">选择发货</li>'
	    +'<li id="Scanner"></li>'
	    +'</ul>'
        +'</header>'
	);
}

function writeSupperPageHeader(t) {
    if (t === "" || t === "index") {
        var Idenity = getIdentity();
        t = getCompanyName();
        if(Idenity == '企业'){
            document.write('<aside class="bg-primary aside-sm" id="nav">'
            + '<section class="vbox">'
            + '<div class="ContainerLeft">'
            + '<span><i style="font-size:1.2em;" class="iconfont icon-home"></i>&nbsp;首页</span>'
            + '<ul>'
            + '<li class="cpgl"><a href="products.html">产品管理</a></li>'
            + '<li class="wdgl"><a href="ScreentoneList.html">网点管理</a></li>'
            + '<li class="sygc"><a href="CompanyTraceability.html">溯源过程</a></li>'
            + '<li class="bqlb"><a href="taglist.html">标签列表</a></li>'
            + '<li class="sysz"><a href="DisplayPage.html">手机模板</a></li>'
            + '<li class="scgl"><a href="ImageList.html">素材管理</a></li>'
            + '</ul>'

            + '<span><i style="font-size:1.2em;" class="iconfont icon-icon11"></i>&nbsp;仓储</span>'
            + '<ul>'
            + '<li class="smfh"><a href="ScanConsignment.html">扫描发货</a></li>'
            + '<li class="plfh"><a href="BatchingDelivery.html">批量发货</a></li>'
            + '<li class="wjfh"><a href="FileShipments.html#">文件发货</a></li>'
            + '<li class="cxfh"><a href="CancelShipment.html">撤销发货</a></li>'
            + '</ul>'

            + '<span><i style="font-size:1.2em;" class="iconfont icon-tongji"></i>&nbsp;统计</span>'
            + '<ul>'
            + '<li class="kccx"><a href="stocklist.html">库存查询</a></li>'
            + '<li class="fhbb"><a href="ConsignmentReport.html">发货报表</a></li>'
            + '<li class="smtj"><a href="ScanStatistics.html">扫描统计</a></li>'
            + '</ul>'
            
            + '</div>'
            + '</section>'
            + '</aside>');
        }else if(Idenity == '网点'){
            document.write('<aside class="bg-primary aside-sm" id="nav">'
            + '<section class="vbox">'
            + '<div class="ContainerLeft">'
            + '<span><i style="font-size:1.2em;" class="iconfont icon-home"></i>&nbsp;首页</span>'
            + '<ul>'
            + '<li class="bqlb"><a href="query.html#bqlb">标签查询</a></li>'
            + '<li class="smfh"><a href="ScanConsignment.html#smfh">扫描发货</a></li>'
            + '<li class="plfh"><a href="BatchingDelivery.html#plfh">批量发货</a></li>'
            + '<li class="xgmm"><a href="company_pwd.html#xgmm">修改密码</a></li>'
            + '<li class="yfgl"><a href="company_manage.html#yfgl">用户管理</a></li>'
            + '</ul>'
            + '</div>'
            + '</section>'
            + '</aside>');
        }else{
           window.localStorage.clear();
            loadUrl('login.html');
        }

    }

}

function writeSupperPageTitle(t) {
    if (t === "" || t === "index") {
        var Idenity = getIdentity();
        t = getCompanyName();
        if(Idenity == '企业'){
            document.write('<aside class="bg-primary aside-sm" id="nav">'
       		+ '<div class="position">'
			+ '<ul>'
			+ '<li><i class="iconfont icon-home"></i>&nbsp;&nbsp;<a href="supper.html">首页</a></li>'
			+ '<li><a class="IndexText"></a></li>'
			
			+ '</ul>'
			+ '</div>'
            + '</aside>');
        }else if(Idenity == '网点'){
            document.write('<aside class="bg-primary aside-sm" id="nav">'
            + '<section class="vbox">'
       		+ '<div class="position">'
			+ '<ul>'
			+ '<li><i class="iconfont icon-home"></i>&nbsp;&nbsp;<a href="website.html">首页</a></li>'
			+ '<li><a class="IndexText"></a></li>'
			
			+ '</ul>'
			+ '</div>'
            + '</section>'
            + '</aside>');
        }

    }

}

function writeProxyPageHeader(t) {
    if (t === "" || t === "index") {
        var Idenity = getIdentity();
        if(Idenity!='代理'){
            window.localStorage.clear();
            loadUrl('login.html');
        }
        t = getProxyName();
    }
    document.write('<aside class="bg-primary aside-sm" id="nav">'
            + '<section class="vbox">'
            + '<div class="ContainerLeft">'
            + '<span><i style="font-size:1.2em;" class="iconfont icon-home"></i>&nbsp;首页</span>'
            + '<ul>'
            + '<li class="sylb"><a href="proxy.html#sylb">首页列表</a></li>'
            + '<li class="qygl"><a href="ent.html#qygl">企业管理</a></li>'
            + '<li class="gszl"><a href="proxyconfig.html#gszl">公司资料</a></li>'
            + '<li class="xgmm"><a href="proxy_pwd.html#xgmm">修改密码</a></li>'
            + '<li class="yfgl"><a href="proxy_manage.html#yfgl">用户管理</a></li>'
            + '</ul>'
            + '</div>'
            + '</section>'
            + '</aside>');
}